package com.raising.sc.log.server.service;

import com.raising.sc.log.server.dao.ApiLogDAO;
import com.raising.sc.log.server.entity.ApiLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 日志服务层
 * @author GaoYuan
 * @date 2018/4/9 下午4:07
 */
@Service
public class ApiLogServerService {

    @Autowired
    ApiLogDAO apiLogDAO;

    /**
     * 保存日志（日志入库）
     * @author GaoYuan
     * @date 2018/4/9 下午4:07
     */
    public void saveLogger(ApiLog apiLog){
        apiLogDAO.save(apiLog);
    }
}
